declare @nIntCodigo int

select @nIntCodigo = max(nintcodigo)+1 from interface where nintclase = 1001 

--insert into interface values (@nIntCodigo,1001,'650103','MNUREGACUERDOS','REGISTRO DE ACUERDOS DE DIRECTORIO',1001,'19/09/2013')

select @nIntCodigo = max(nintcodigo)+1 from interface where nintclase = 1001 

--insert into interface values (@nIntCodigo,1001,'650104','MNUACUMONITOR','MONITOR DE ACUERDOS DE DIRECTORIO',1001,'19/09/2013')

select @nIntCodigo = max(nintcodigo)+1 from interface where nintclase = 1009 

--insert into interface values (@nIntCodigo,1009,'81.CFGTRAARENOM','#-@@@@/FI-EIS-UA','Nomenclatura de Documentos',0,'20/09/2013')

--insert into perusugruacc values ('9000013375',91018,1006,	@nIntCodigo,1009)
